import { createWebHistory, createRouter } from 'vue-router'

const routes = [
  { path: '/login', name: 'login', component: () => import('../views/User/LoginView.vue') },
  {
    path: '/', name: 'Layout', component: () => import('../layout/Layout.vue'),
    children: [
      { path: '/home', name: 'home', component: () => import('../views/Home/HomeView.vue'), }
    ],
  },
]


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
})

export default router